#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>

int main()
{
	scanf("%d", &srand);
	printf("%d",rand());
	return 0;
}